package com.randi.file.entity.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.web.multipart.MultipartFile;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author ziye
 */
@Data
@ApiModel(value = "FileUpload对象", description = "文件上传")
public class FileUploadVo {

    @NotNull(message = "文件不能为空")
    @ApiModelProperty("文件")
    private MultipartFile file;

    @NotBlank(message = "文件哈希不能为空")
    @ApiModelProperty("文件哈希")
    private String fileHash;

}
